package com.yangxk.kadmin.web.module.sample.service;

import com.yangxk.kadmin.common.base.BaseService;
import com.yangxk.kadmin.web.module.sample.form.CategoryEditForm;
import com.yangxk.kadmin.web.module.sample.form.CategoryQueryForm;
import com.yangxk.kadmin.web.module.sample.po.Category;
import java.util.List;
import com.github.pagehelper.PageInfo;

public interface CategoryService extends BaseService<Category, Long>{

    PageInfo<Category> queryByPage(CategoryQueryForm categoryQueryForm);

    List<Category> queryAll();

    long addCategory(CategoryEditForm form);

    long updateCategory(CategoryEditForm form);

    void deleteCategory(long id);
}
